package com.daniel.design.pattern.proxy.jdk;

/**
 * @ClassName Client
 * @Description 动态代理测试类
 * @Author Daniel
 * @Version V1.0.0
 */
public class Client {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory(new TrainStation());
        ISellTickets proxyObject = proxyFactory.getProxyObject();
        proxyObject.sell();
    }
}
